package pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

public class Doctor {
    private String docId;
    private String docName;
    private String sex;
    private String nation;
    private Integer workYear;
    private String politicstatus;
    private String docTitle;
    private String education;
    private String introduction;
    private String telephone;
    private Integer departId1;
    private Integer departId2;
    private Date birthdate;
    private String userName;
    private String img;
    private Integer recommend;

    // Getters and Setters
    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public Integer getWorkYear() {
        return workYear;
    }

    public void setWorkYear(Integer workYear) {
        this.workYear = workYear;
    }

    public String getPoliticstatus() {
        return politicstatus;
    }

    public void setPoliticstatus(String politicstatus) {
        this.politicstatus = politicstatus;
    }

    public String getDocTitle() {
        return docTitle;
    }

    public void setDocTitle(String docTitle) {
        this.docTitle = docTitle;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getDepartId1() {
        return departId1;
    }

    public void setDepartId1(Integer departId1) {
        this.departId1 = departId1;
    }

    public Integer getDepartId2() {
        return departId2;
    }

    public void setDepartId2(Integer departId2) {
        this.departId2 = departId2;
    }

    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getBirthdate() {
        return birthdate;
    }

    public void setBirthdate(Date birthdate) {
        this.birthdate = birthdate;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "docId='" + docId + '\'' +
                ", docName='" + docName + '\'' +
                ", sex='" + sex + '\'' +
                ", nation='" + nation + '\'' +
                ", workYear=" + workYear +
                ", politicstatus='" + politicstatus + '\'' +
                ", docTitle='" + docTitle + '\'' +
                ", education='" + education + '\'' +
                ", introduction='" + introduction + '\'' +
                ", telephone='" + telephone + '\'' +
                ", departId1=" + departId1 +
                ", departId2=" + departId2 +
                ", birthdate=" + birthdate +
                ", userName='" + userName + '\'' +
                ", img='" + img + '\'' +
                ", recommend=" + recommend +
                '}';
    }
}